//
//  CrazyDiceAppDelegate.m
//  CrazyDice
//
//  Created by Hjelm Daniel on 7/20/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "CrazyDiceAppDelegate.h"
#import "EAGLView.h"

@implementation CrazyDiceAppDelegate

@synthesize window;
@synthesize glView;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
	//self.glView = [[EAGLView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	MenuView *menuView = [[MenuView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	[self.window addSubview:menuView];
	[self.window makeKeyAndVisible];
    //[glView startAnimation];
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
    //[glView stopAnimation];
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    //[glView startAnimation];
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    //[glView stopAnimation];
}

- (void)dealloc
{
    [window release];
    //[glView release];

    [super dealloc];
}

@end
